package triprecorder;
import java.io.*;

public abstract class Trip implements Serializable
{
	private int start = 0;
	private int end = 0;
	
	public Trip(int start){
		this.start = start;
		this.end = 0;
	}
	
	public int getStart(){
		return start;
	}
	
	public int getEnd(){
		return end;
	}
	
	public void setEnd(int end){
		this.end = end;
	}

	public String toString()
	{
		String str = " from " + "StationLookup.getStation(start)";
		if(end != 0)
			str += " to " + "StationLookup.getStation(end)";
		return str;
	}

	public abstract String getDescription();

}